Write unit tests for the following code block:

{{{code}}}

Please use the most popular testing library suitable for the language of the code.

The language is: {{language}}.

Always format responses with Markdown for code blocks with the language prefix e.g language-prefix.